package org.atlantis.grosbeak.cable;

import java.lang.reflect.Method;

/**
 * 描述一个Action的信息。
 * 
 * @author <a href="mailto:seenoevil.cn@gmail.com">SeeNoEvil</a>
 */
class ActionDesc {

	// 一个ActionBean的实例
	public final Object instance;

	// ActionBean中的要执行的ActionMethod
	public final Method method;

	// 执行ActionMethod所需要的参数
	public final Class<?>[] arguments;

	public ActionDesc(Object instance, Method method) {
		this.instance = instance;
		this.method = method;
		this.arguments = method.getParameterTypes();
	}
}
